package cn.elwy.rcp.ui.table.model;

import java.io.Serializable;
import java.util.List;

public class ButtonCompositeInfo implements Serializable {

  private static final long serialVersionUID = 1L;

  public static final String LOCATION_TOP = "TOP";
  public static final String LOCATION_BOTTOM = "BOTTOM";

  private String name;
  private String location;

  private List<ButtonBarInfo> buttonBarInfoList;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getLocation() {
    return location;
  }

  public void setLocation(String location) {
    this.location = location;
  }

  public List<ButtonBarInfo> getButtonBarInfoList() {
    return buttonBarInfoList;
  }

  public void setButtonBarInfoList(List<ButtonBarInfo> buttonBarInfoList) {
    this.buttonBarInfoList = buttonBarInfoList;
  }

  public boolean isTop() {
    return LOCATION_TOP.equals(location);
  }

  public boolean isBottom() {
    return LOCATION_BOTTOM.equals(location);
  }

}
